package com.desaysv.wandroid.fragment.main.mvp

import com.desaysv.mvp.IModel
import com.desaysv.mvp.IView
import com.desaysv.svhttp.callback.IRequestCallBack
import com.desaysv.wandroid.entity.AirticEntity
import com.desaysv.wandroid.entity.BannerEntity
import com.desaysv.wandroid.entity.BaseRes

/**
 * @author linzi
 * @date 2022-11-16
 */
interface MainContract {
    interface IMainView:IView{
        fun showBanner(banners:List<BannerEntity>?)
        fun refreshData(airticEntity: AirticEntity?)
        fun refreshTopData(datas: List<AirticEntity.DatasBean>?)
        fun initMenu()
    }
    interface IMainModel:IModel{
        fun getBanner(requestCallBack: IRequestCallBack<BaseRes<List<BannerEntity>?>>)
        fun getData(page:Int,requestCallBack: IRequestCallBack<BaseRes<AirticEntity>>)
        fun getTopAirtics(requestCallBack: IRequestCallBack<BaseRes<List<AirticEntity.DatasBean>>>)
    }
}